//
//  QWHTTPDownloaderConfig.h
//  WJHTTPDownloader-example
//
//  Created by Yunhai.Wu on 16/1/8.
//  Copyright © 2016年 WJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IQWHTTPDownloadCache.h"

/**
 *  下载器配置
 */
@interface QWHTTPDownloaderConfig : NSObject

/**
 *  缓存对象
 */
@property (nonatomic, strong, readonly) id<IQWHTTPDownloadCache> cache;

/**
 *  缓存时长（秒）
 *
 *  DEFAULT 7天
 */
@property (nonatomic, assign, readonly) NSTimeInterval defaultCacheDuration;


-(void) setCacheObject:(id<IQWHTTPDownloadCache>) cache;

-(void) setDefaultDuration:(NSTimeInterval) duration;

+(instancetype) sharedInstance;

@end
